﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using G.WeiBo.Command;
using G.WeiBo.WebAPI.Domain;

namespace G.WeiBo.ViewModel
{
    public class MessageViewModel : BaseViewModel
    {
        public CommentCommand Comment { get;private set; }

        public ForwardCommand Forward { get;private set; }

        public AddConcernCommand AddConcern { get;private set; }

        public CreateFavoritesCommand CreateFavorite { get; private set; }

        public DeleteMessageCommand DeleteMessage { get; set; }

        public G.MVVM.CallBackCommand CopyCommand { get;private set; }

        public MessageViewModel()
        {
            this.Comment = new CommentCommand();
            this.Forward = new ForwardCommand();
            this.AddConcern = new AddConcernCommand();
            this.CreateFavorite = new CreateFavoritesCommand();
            this.DeleteMessage = new DeleteMessageCommand();
            this.CopyCommand = new MVVM.CallBackCommand(Copy);
        }
        private void Copy(object p)
        {
            Message messag = p as Message;
            Clipboard.SetText(messag.Text);
        }
    }
}
